﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>
#include <QProcess>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QMap>


namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    bool cmdCtrl(QMap<QString, QString> data);


private:
    Ui::Widget *ui;
    QProcess *process = NULL;
    QTimer *timer = NULL;
    QString appName;
    int msec;
    QSystemTrayIcon *trayIcon;
    QMenu *menu;
    QAction *quitAction;
    QString proName;
    QString exePath;
    QString code;

private slots:
    bool checkAppStatus();
    bool on_pushButton_clicked();
    void on_pushButton_2_clicked();
    void on_comboBox_activated(const QString &arg1);
};

#endif // WIDGET_H
